package com.biyu.monitormanage.dao;

import com.biyu.monitormanage.entity.MachineEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.biyu.monitormanage.entity.RealTimeDataEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 机器表
 * 
 * @author biyubing
 * @email byb15491665510220@163.com
 * @date 2022-03-12 11:39:22
 */
@Mapper
public interface MachineDao extends BaseMapper<MachineEntity> {

    /**
     * 通过部门或名称查询机器
     * @param department 部门
     * @param name 名称
     * @return 机器列表
     */
    List<MachineEntity> selectByDepartmentOrName(@Param("department")String department, @Param("machineName")String name);

}
